home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / powerup / ppcinline / ahi.h next >
C/C++ Source or Header  |  2000-02-28  |  6KB  |  139 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _PPCINLINE_AHI_H
  4. #define _PPCINLINE_AHI_H
  5.  
  6. #ifndef __PPCINLINE_MACROS_H
  7. #include <powerup/ppcinline/macros.h>
  8. #endif /* !__PPCINLINE_MACROS_H */
  9.  
  10. #ifndef AHI_BASE_NAME
  11. #define AHI_BASE_NAME AHIBase
  12. #endif /* !AHI_BASE_NAME */
  13.  
  14. #define AHI_AddAudioMode(Private) \
  15.     LP1(0x96, ULONG, AHI_AddAudioMode, struct TagItem *, Private, a0, \
  16.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  17.  
  18. #ifndef NO_PPCINLINE_STDARG
  19. #define AHI_AddAudioModeTags(tags...) \
  20.     ({ULONG _tags[] = { tags }; AHI_AddAudioMode((struct TagItem *)_tags);})
  21. #endif /* !NO_PPCINLINE_STDARG */
  22.  
  23. #define AHI_AllocAudioA(tagList) \
  24.     LP1(0x2a, struct AHIAudioCtrl *, AHI_AllocAudioA, struct TagItem *, tagList, a1, \
  25.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  26.  
  27. #ifndef NO_PPCINLINE_STDARG
  28. #define AHI_AllocAudio(tags...) \
  29.     ({ULONG _tags[] = { tags }; AHI_AllocAudioA((struct TagItem *)_tags);})
  30. #endif /* !NO_PPCINLINE_STDARG */
  31.  
  32. #define AHI_AllocAudioRequestA(tagList) \
  33.     LP1(0x78, struct AHIAudioModeRequester *, AHI_AllocAudioRequestA, struct TagItem *, tagList, a0, \
  34.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  35.  
  36. #ifndef NO_PPCINLINE_STDARG
  37. #define AHI_AllocAudioRequest(tags...) \
  38.     ({ULONG _tags[] = { tags }; AHI_AllocAudioRequestA((struct TagItem *)_tags);})
  39. #endif /* !NO_PPCINLINE_STDARG */
  40.  
  41. #define AHI_AudioRequestA(Requester, tagList) \
  42.     LP2(0x7e, BOOL, AHI_AudioRequestA, struct AHIAudioModeRequester *, Requester, a0, struct TagItem *, tagList, a1, \
  43.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  44.  
  45. #ifndef NO_PPCINLINE_STDARG
  46. #define AHI_AudioRequest(a0, tags...) \
  47.     ({ULONG _tags[] = { tags }; AHI_AudioRequestA((a0), (struct TagItem *)_tags);})
  48. #endif /* !NO_PPCINLINE_STDARG */
  49.  
  50. #define AHI_BestAudioIDA(tagList) \
  51.     LP1(0x72, ULONG, AHI_BestAudioIDA, struct TagItem *, tagList, a1, \
  52.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  53.  
  54. #ifndef NO_PPCINLINE_STDARG
  55. #define AHI_BestAudioID(tags...) \
  56.     ({ULONG _tags[] = { tags }; AHI_BestAudioIDA((struct TagItem *)_tags);})
  57. #endif /* !NO_PPCINLINE_STDARG */
  58.  
  59. #define AHI_ControlAudioA(AudioCtrl, tagList) \
  60.     LP2(0x3c, ULONG, AHI_ControlAudioA, struct AHIAudioCtrl *, AudioCtrl, a2, struct TagItem *, tagList, a1, \
  61.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  62.  
  63. #ifndef NO_PPCINLINE_STDARG
  64. #define AHI_ControlAudio(a0, tags...) \
  65.     ({ULONG _tags[] = { tags }; AHI_ControlAudioA((a0), (struct TagItem *)_tags);})
  66. #endif /* !NO_PPCINLINE_STDARG */
  67.  
  68. #define AHI_FreeAudio(AudioCtrl) \
  69.     LP1NR(0x30, AHI_FreeAudio, struct AHIAudioCtrl *, AudioCtrl, a2, \
  70.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  71.  
  72. #define AHI_FreeAudioRequest(Requester) \
  73.     LP1NR(0x84, AHI_FreeAudioRequest, struct AHIAudioModeRequester *, Requester, a0, \
  74.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  75.  
  76. #define AHI_GetAudioAttrsA(ID, Audioctrl, tagList) \
  77.     LP3(0x6c, BOOL, AHI_GetAudioAttrsA, ULONG, ID, d0, struct AHIAudioCtrl *, Audioctrl, a2, struct TagItem *, tagList, a1, \
  78.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  79.  
  80. #ifndef NO_PPCINLINE_STDARG
  81. #define AHI_GetAudioAttrs(a0, a1, tags...) \
  82.     ({ULONG _tags[] = { tags }; AHI_GetAudioAttrsA((a0), (a1), (struct TagItem *)_tags);})
  83. #endif /* !NO_PPCINLINE_STDARG */
  84.  
  85. #define AHI_KillAudio() \
  86.     LP0NR(0x36, AHI_KillAudio, \
  87.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  88.  
  89. #define AHI_LoadModeFile(Private) \
  90.     LP1(0xa2, ULONG, AHI_LoadModeFile, STRPTR, Private, a0, \
  91.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  92.  
  93. #define AHI_LoadSound(Sound, Type, Info, AudioCtrl) \
  94.     LP4(0x5a, ULONG, AHI_LoadSound, UWORD, Sound, d0, ULONG, Type, d1, APTR, Info, a0, struct AHIAudioCtrl *, AudioCtrl, a2, \
  95.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  96.  
  97. #define AHI_NextAudioID(Last_ID) \
  98.     LP1(0x66, ULONG, AHI_NextAudioID, ULONG, Last_ID, d0, \
  99.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  100.  
  101. #define AHI_PlayA(Audioctrl, tagList) \
  102.     LP2NR(0x8a, AHI_PlayA, struct AHIAudioCtrl *, Audioctrl, a2, struct TagItem *, tagList, a1, \
  103.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  104.  
  105. #ifndef NO_PPCINLINE_STDARG
  106. #define AHI_Play(a0, tags...) \
  107.     ({ULONG _tags[] = { tags }; AHI_PlayA((a0), (struct TagItem *)_tags);})
  108. #endif /* !NO_PPCINLINE_STDARG */
  109.  
  110. #define AHI_RemoveAudioMode(Private) \
  111.     LP1(0x9c, ULONG, AHI_RemoveAudioMode, ULONG, Private, d0, \
  112.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  113.  
  114. #define AHI_SampleFrameSize(SampleType) \
  115.     LP1(0x90, ULONG, AHI_SampleFrameSize, ULONG, SampleType, d0, \
  116.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  117.  
  118. #define AHI_SetEffect(Effect, AudioCtrl) \
  119.     LP2(0x54, ULONG, AHI_SetEffect, APTR, Effect, a0, struct AHIAudioCtrl *, AudioCtrl, a2, \
  120.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  121.  
  122. #define AHI_SetFreq(Channel, Freq, AudioCtrl, Flags) \
  123.     LP4NR(0x48, AHI_SetFreq, UWORD, Channel, d0, ULONG, Freq, d1, struct AHIAudioCtrl *, AudioCtrl, a2, ULONG, Flags, d2, \
  124.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  125.  
  126. #define AHI_SetSound(Channel, Sound, Offset, Length, AudioCtrl, Flags) \
  127.     LP6NR(0x4e, AHI_SetSound, UWORD, Channel, d0, UWORD, Sound, d1, ULONG, Offset, d2, LONG, Length, d3, struct AHIAudioCtrl *, AudioCtrl, a2, ULONG, Flags, d4, \
  128.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  129.  
  130. #define AHI_SetVol(Channel, Volume, Pan, AudioCtrl, Flags) \
  131.     LP5NR(0x42, AHI_SetVol, UWORD, Channel, d0, Fixed, Volume, d1, sposition, Pan, d2, struct AHIAudioCtrl *, AudioCtrl, a2, ULONG, Flags, d3, \
  132.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  133.  
  134. #define AHI_UnloadSound(Sound, Audioctrl) \
  135.     LP2NR(0x60, AHI_UnloadSound, UWORD, Sound, d0, struct AHIAudioCtrl *, Audioctrl, a2, \
  136.     , AHI_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  137.  
  138. #endif /* !_PPCINLINE_AHI_H */
  139.